<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	String szgd  = (String)session.getAttribute("pub_pm_szgds");
	String szgdx = (String)session.getAttribute("pub_pm_szgdx");
%>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta name="keywords" content="jquery,ui,easy,easyui,web">
	<meta name="description" content="easyui help you build your web page easily!">
	<title>上传数据项</title>
	<link rel="stylesheet" type="text/css"
		  href="<%=request.getContextPath()%>/plug-in/easyuinew/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css"
		  href="<%=request.getContextPath()%>/plug-in/easyuinew/themes/icon.css">
	<link rel="stylesheet" type="text/css"
		  href="<%=request.getContextPath()%>/plug-in/easyuinew/demo/demo.css">
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resour/css/util.css">
	<script type="text/javascript"
			src="<%=request.getContextPath()%>/plug-in/easyuinew/jquery.min.js"></script>
	<script type="text/javascript"
			src="<%=request.getContextPath()%>/plug-in/easyuinew/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript"
			src="<%=request.getContextPath()%>/plug-in/easyuinew/jquery.easyui.min.js"></script>

	<script type="text/javascript" src="<%=request.getContextPath()%>/resour/js/Utils.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/resour/js/valid.js"></script>

	<%--<style type="text/css">
		.rtitle{
			font-size:18px;
			font-weight:bold;
			padding:5px 10px;
			background:#336699;
			color:#fff;
		}
		.icon-channels{
			background:url('images/tree_channels.gif') no-repeat;
		}
		.icon-feed{
			background:url('images/rss.png') no-repeat;
		}
		.icon-rss{
			background:url('images/rss.gif') no-repeat;
		}
	</style>--%>
<%--	<SCRIPT language="JavaScript">

	</SCRIPT>--%>

	<script type="text/javascript">
        pageSelected = 0
        onetableid = '';
        twotableid='';
        threetableid='';
        $(function(){
            $('#dg').datagrid({
                onSelect: function(index,row){
                    $('#cc').attr('src', row.link);
                },
                onLoadSuccess:function(){
                    var rows = $(this).datagrid('getRows');
                    if (rows.length){
                        $(this).datagrid('selectRow',0);
                    }
                }
            });
            $('#t-channels').tree({
                url: 'data/channels.json',
                onSelect: function(node){
                    var url = node.attributes.url;
                    $('#dg').datagrid('load',{
                        url: url
                    });
                },
                onLoadSuccess:function(node,data){
                    if (data.length){
                        var id = data[0].children[0].children[0].id;
                        var n = $(this).tree('find', id);
                        $(this).tree('select', n.target);
                    }
                }
            });
        });
	</script>
	<script type="text/javascript">
        var index = 0;
        function addTab(){
            index++;
            $('#tt').tabs('add',{
                title:'New Tab ' + index,
                content:'Tab Body ' + index,
                iconCls:'icon-save',
                closable:true,
                tools:[{
                    iconCls:'icon-mini-refresh',
                    handler:function(){
                        alert('refresh');
                    }
                }]
            });
        }
        function getSelected(){
            var tab = $('#tt').tabs('getSelected');
            var pageno = tab.panel('options').href;           
            if(pageno =='0'){
                pageSelected =0;
                if(window.onetableid!=''){                	
                    window.suber.location.replace("<%=request.getContextPath()%>/scsjxController.do?subtitle&keyid="+window.onetableid+"&pno="+window.pageSelected);
                }else{
                    window.suber.location.replace("<%=request.getContextPath()%>/webpage/common/Blank.jsp");
                }
            }       
            if(pageno =='1'){
                pageSelected =1;               
                if(window.twotableid!=''){
                    window.suber.location.replace("<%=request.getContextPath()%>/scsjxController.do?subtitle&keyid="+window.twotableid+"&pno="+window.pageSelected);
                }else{
                	alert("请点击"+"'"+"tag信息"+"'"+"标签，录入tag信息记录，并选中记录！");
                	
                    window.suber.location.replace("<%=request.getContextPath()%>/webpage/common/Blank.jsp");
                }
            }
            
            if(pageno =='2'){
                pageSelected =2;               
                if(window.threetableid!=''){
                    window.suber.location.replace("<%=request.getContextPath()%>/scsjxController.do?subtitle&keyid="+window.threetableid+"&pno="+window.pageSelected);
                }else{
                	alert("请点击"+"'"+"tag属性"+"'"+"标签，录入tag属性记录，并选中记录！");
                	
                    window.suber.location.replace("<%=request.getContextPath()%>/webpage/common/Blank.jsp");
                }
            }
            

        }
        function update(){
            index++;
            var tab = $('#tt').tabs('getSelected');
            $('#tt').tabs('update', {
                tab: tab,
                options:{
                    title:'new title'+index,
                    iconCls:'icon-save'
                }
            });
        }
	</script>

</head>
<body class="easyui-layout">
<div region="center" border="false">
	<div class="easyui-layout" fit="true" style="position:absolute;top:0px;left:0px;">
		<div region="north" border="false" split="true"  style="background:#DDDDDD;height:<%=szgd%>px;"  scrolling="no" >
			<iframe id="cc" src="<%=request.getContextPath()%>/scsjxController.do?maintitle" style="width:100%;height:98%" name="super" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" margin-top="0"></iframe>
		</div>
		<div region="center" border="false"  style="overflow:hidden;width:100%;height:30px" scrolling="NO">
			<div id="tt" class="easyui-tabs"   tools="#tab-tools" style="height:29px;">
				<div title="tag名称" iconCls="icon-reload" closable="false"  style="padding:20px;" cache="false" href="0">
				</div>
				<div title="tag属性" iconCls="icon-redo" closable="false"  style="padding:20px;" cache="false" href="1">
				</div>
<%--				<div title="值转换" iconCls="icon-redo" closable="false"  style="padding:20px;" cache="false" href="2">
				</div>--%>

				<!--
                <div title="两列标题" iconCls="icon-edit" closable="false"  style="padding:20px;" cache="false" href="2">
                </div>
                -->
			</div>
			<div  style="background:#DDDDDD;height:<%=szgdx%>px;"  scrolling="no">
				<iframe name="suber" id="suber" src="<%=request.getContextPath()%>/webpage/common/Blank.jsp" scrolling="NO" frameborder="0" style="width:100%;height:100%"></iframe>
			</div>
		</div>
	</div>
</div>
</body>
</html>
